<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>Hello APP</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/base.css" />
    <style>
    		html, body {
			height: 100%;
			background-color: #0f0;
		}
    header {
        position: relative;
        width: 100%;
        height: 50px;
        background-color: #f0f;
    }
    
    header h1 {
        position: relative;
        height: 50px;
        line-height: 50px;
        font-size: 20px;
        color: #fff;
        text-align: center;
    }
    
    header .left {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100px;
        height: 50px;
        line-height: 50px;
        font-size: 16px;
        color: #fff;
        text-align: center;
    }
    
    header .right {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 100px;
        height: 50px;
        line-height: 50px;
        font-size: 16px;
        color: #fff;
        text-align: center;
    }
    </style>
</head>

<body>
    <header>
        <h1>登录</h1>
        <div class="left" tapmode onclick="api.closeWin();">返回</div>
        <div class="right" tapmode onclick="fnOpenRegisterWin();">注册</div>
    </header>
    <form action="">
        	账号：
        	<input id='account' type='text' value=''/><br />
        	密码：
        	<input id='code' type='password' value=''/><br />
        	<input type='submit' value='登陆'/>
        	<input type='button' value='清空'>
        </form>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript">
apiready = function() {

};

function fnOpenRegisterWin() {
    api.openWin({
        name: 'register',
        url: './register.html',
        pageParam: {
            name: 'test'
        }
    });
}
</script>

</html>
